//
//  YEventDeTableViewCell.m
//  shijianpinggu
//
//  Created by apple on 2017/3/31.
//  Copyright © 2017年 apple. All rights reserved.
//

#import "YEventDeTableViewCell.h"

@implementation YEventDeTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    

}
-(void)imageArWitharrray:(NSArray *)array{
    NSInteger width = (self.frame.size.width-5*4)/3;
    NSInteger heigh = 100;
    
    for (int i=0; i<array.count; i++) {
        self.imageV = [[UIImageView alloc] initWithImage:[UIImage imageNamed:array[i]]];
        _imageV.backgroundColor = [UIColor redColor];
        _imageV.frame = CGRectMake(i*width+5*(i+1), 0, width, heigh);
        _imageV.userInteractionEnabled = YES;
        _imageV.tag = i;
        
        [self.countView addSubview:_imageV];
    }
    self.scrollView.pagingEnabled = YES;
    self.viewWidth.constant = (array.count-1)*(width+5)+10;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
